home *** CD-ROM | disk | FTP | other *** search
- \ Simple minded interface to the MIDI ports.
- decimal
-
- 1 bios: bconstat { w.dev -- l.ready? }
- 2 bios: bconin { w.dev -- l.char }
- 3 bios: bconout { w.char w.dev -- }
- 8 bios: bcostat { w.dev -- l.ready? }
- \ 0 printer 1 aux ( modem ) 2 con 3 midi 4 keyboard
- 3 constant midi-handle
-
- : midi-key ( -- char ) midi-handle bconin ;
- : midi-emit ( char -- ) midi-handle bconout ;
- : midi-key? ( -- flag ) midi-handle bconstat ;
- : midi-emit? ( -- flag ) midi-handle bcostat ;
-
- \ cnt is the number of chars to write, minus 1 ( Don't ask me why)
- 12 xbios: midiws { a.ptr w.cnt -- } \ Midi write string
-